package com.portal.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.portal.entity.Footer;
import com.portal.mapper.FooterMapper;
import com.portal.service.FooterService;
import org.springframework.stereotype.Service;
import java.util.List;

/**
 * 页脚导航服务实现类
 */
@Service
public class FooterServiceImpl extends ServiceImpl<FooterMapper, Footer> implements FooterService {
    
    @Override
    public List<Footer> getEnabledFooterList() {
        LambdaQueryWrapper<Footer> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(Footer::getEnabled, true)
               .orderByAsc(Footer::getSortOrder);
        return list(wrapper);
    }
} 